<template>
  <div class="construction">
    <head-main/>
    <vtour />
    <div class="topNum">
      <div class="topUl">
        <div class="lis">
          <div class="text">温度</div>
          <div class="num"><div class="nm">24</div><div class="unit">℃</div></div>
        </div>
        <div class="lis">
          <div class="text">湿度</div>
          <div class="num"><div class="nm">22</div><div class="unit">%</div></div>
        </div>
        <div class="lis">
          <div class="text">风向</div>
          <div class="num"><div class="nm">18</div><div class="unit">正南</div></div>
        </div>
        <div class="lis">
          <div class="text">土壤</div>
          <div class="num"><div class="nm">28</div><div class="unit">PA</div></div>
        </div>
        <div class="lis">
          <div class="text">灾害</div>
          <div class="num"><div class="nm">28</div><div class="unit">亩</div></div>
        </div>
        <div class="lis">
          <div class="text">苗情</div>
          <div class="num"><div class="nm">23</div><div class="unit"></div></div>
        </div>
      </div>
    </div>

    <div class="warning" v-if="iswarning">
      <div class="text">病虫害警告信息</div>
      <div class="examine">查看数据情况</div>
    </div>

    <div class="left-main">
      <con-left/>
    </div>
    <div class="right-main">
      <con-right/>
    </div>
    <div class="btm-main">
      <conbtm/>
    </div>
    <bottom-main/>
  </div>
</template>

<script>
import HeadMain from '@/components/headMain/index.vue';
import BottomMain from '@/components/bottomMain/bottomMain.vue';
import ConLeft from './components/conLeft.vue';
import ConRight from './components/conRight.vue';
import Conbtm from './components/conbtm.vue';
import Vtour from '@/components/vtour/Vtour.vue';

export default {
  components: { HeadMain, BottomMain, ConLeft, ConRight, Conbtm, Vtour },
  data() {
    return {
      iswarning: false
    };
  },

  mounted() {
    setTimeout(() => {
      this.iswarning = true
    }, 3000);
    setTimeout(() => {
      this.iswarning = false
    }, 10000);
  },

  methods: {
    
  },
};
</script>

<style lang="scss" scoped>
.construction {
  width: 100%;
  height: 100%;
  .warning {
    width: 336px;
    background: url(~assets/images/warningbg.png);
    background-size: 100% 100%;
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    padding: 20px;
    justify-content: space-between;
    font-size: 12px;
    line-height: 20px;
    .text {
      padding-left: 30px;
      background: url(~assets/images/warningicon.png) no-repeat left center;
      background-size: 20px 20px;
    }
    .examine {
      color: #88BAF2;
      cursor: pointer;
    }
  }
  .topNum {
    background: url(~assets/images/twobg.png) no-repeat;
    background-size: 100%;
    width: 864px;
    height: 99px;
    position: absolute;
    top: 60px;
    z-index: 111;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    .topUl {
      width: 100%;
      display: flex;
      justify-content: space-around;
      padding: 0 80px;
      .lis {
        font-size: 18px;
        color: #A7CBDB;
        .num {
          display: flex;
          align-items: center;
          width: 100%;
          .nm {
            color: #fff;
            font-size: 38px;
            font-family: ysbt;
          }
        }
      }
    }
  }
  .left-main {
    position: absolute;
    top: 0;
    left: 0px;
    width: 400px;
    height: 100%;
    background: linear-gradient(to right,rgba(16,44,73,.7), rgba(16,44,73,.4) 40%,rgba(16,44,73,0));
    z-index: 2;
  }
  .right-main {
    position: absolute;
    top: 0;
    right: 0px;
    width: 400px;
    height: 100%;
    background: linear-gradient(to left,rgba(16,44,73,.7), rgba(16,44,73,.4) 40%,rgba(16,44,73,0));
    z-index: 2;
  }
  .btm-main {
    position: absolute;
    bottom: 58px;
    left: 468px;
    width: calc(100% - 458px - 448px);
    height: 150px;
    z-index: 1;
  }
}
</style>